package com.he.decoratormodel;

import com.he.decoratormodel.decorator.concreteclothes.BigTrouser;
import com.he.decoratormodel.decorator.concreteclothes.Jacket;
import com.he.decoratormodel.decorator.concreteclothes.TShirts;
import com.he.decoratormodel.component.concretecomponent.Person;
import com.he.decoratormodel.component.Component;

public class Client {
    public static void main(String[] args) {
        Person person = new Person("wayn");
        Component component = new BigTrouser(person);
        Component component1 = new TShirts(component);
        Component component2 = new Jacket(component1);
        component2.puton();
    }
}
